# Maintainer: Will Sinatra <wpsinatra@gmail.com>
pkgname=py3-dict2xml
_pyname=dict2xml
pkgver=1.7.5
pkgrel=2
pkgdesc="Small utility to convert a python dictionary into an XML string"
url="https://github.com/delfick/python-dict2xml"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-hatchling py3-gpep517 py3-installer"
checkdepends="py3-pytest py3-nose-of-yeti"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/d/dict2xml/dict2xml-$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$pkgver"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

check() {
	pytest
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/dict2xml*.whl
}

sha512sums="
88a77fcdc2ec320ba1668b27da4aacfcfc817090aebabc01fce76bff51b316166a0cc1f053884e8012a28e7118449f901465703869245dc662f29cee9665157e  dict2xml-1.7.5.tar.gz
"
